from tkinter import *
print("Введите сдвиг по X:")
int(input())
print("Введите сдвиг по Y:")
int(input())
print("Маштаб:")
int(input())
if N == 0 and X>=0 and X<=500 and Y>=0 and Y<=500:
    pass
else:
    if N > 0 and 0*N+X>=0 and 0*N+Y>=0 and 20*N+X<=500 and 20*N+Y<=500:
        pass
    else:
        if N < 0 and 20*N+X>=0 and 20*N+Y>=0 and 0*N+X<=500 and 0*N+Y<=500:
            pass
        else:
            print('Размер фигуры превышает  максимальный размер поля')
            exit()
coords = [0 * N + X, 0 * N + Y,
         10 * N + X, 0 * N + Y,
         10 * N + X, 10 * N + Y,
         20 * N + X, 10 * N + Y,
         20 * N + X, 20 * N + Y,
         10 * N + X, 20 * N + Y,
         10 * N + X, 30 * N + Y,
         0 * N + X, 30 * N + Y,
         0 * N + X, 20 * N + Y,
         0 * N + X, 10 * N + Y,
         0 * N + X, 0 * N + Y,]
coords1 = [50, 0, 50, 10, 50, 20, 60, 20, 70, 20, 80, 20, 80, 10, 80, 0, 70, 0, 70, 10, 60, 10, 60, 0, 50, 0,]
coords2 = [100, 0, 110, 0, 110, 10, 120, 10, 120, 20, 120, 30, 110, 30, 110, 20, 100, 20, ]
root = Tk()
root.title("ИТ Марафон")
root.title("800x750")
canvas = Canvas(bg="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)
canvas.create_polygon(coords)
canvas.create_polygon(coords1)
canvas.create_polygon(coords2)
root.mainloop()
